# Makefile  

CC = gcc  
CFLAGS = -Wall -O2  
TARGET = test  
SRCS = test.c sm3.c  
HEADERS = sm3.h  

all: $(TARGET)  

$(TARGET): $(SRCS) $(HEADERS)  
	$(CC) $(CFLAGS) -o $(TARGET) $(SRCS)  

clean:  
	rm -f $(TARGET)